Skip to content

Compression OrderBy & SegmentBy#33

Merged
sebastian-ederer merged 5 commits intocmdscale:mainfrom
towner-10:compression-attributes
Feb 4, 2026
Merged

Compression OrderBy & SegmentBy#33
sebastian-ederer merged 5 commits intocmdscale:mainfrom
towner-10:compression-attributes

Conversation

@towner-10
Copy link
Contributor

Introduces configuration to support the timescaledb.compress_segmentby and timescaledb.compress_orderby compression attributes. It is also able to pull the configuration from the database itself.

Solves #32

Usage / Example

builder.IsHypertable(x => x.Date)
            .WithChunkSkipping(x => x.Date)
            .WithChunkTimeInterval("1 day")
            .WithCompressionSegmentBy(x => x.TypeId)
            .WithCompressionOrderBy(x =>
            [
                x.ByDescending(m => m.Date)
            ]);

@sebastian-ederer
Copy link
Contributor

Thank you so much for the commit. ❤️
Currently, I am heavily involved in other projects, but I'll review the PR in the next few days! 👍

Fix scaffolding round-trip mismatch by omitting default NULLS clauses to NULLS FIRST). Change OrderByExtensions default from bool to bool? with null default to prevent phantom migrations between API styles. Replace var with explicit types and triple-slash inline comments with double-slash per coding standards.
@sebastian-ederer sebastian-ederer self-requested a review February 4, 2026 15:49
@codecov
Copy link

codecov bot commented Feb 4, 2026

@sebastian-ederer
Copy link
Contributor

FYI: The PR was very good. I've added some tests for the classes in OrderBy.cs to meet the criterias of codecove and did some minor refactorings regarding XML-Comments and using explicit types instead of var.

Thank you very much for your work! :)

@sebastian-ederer sebastian-ederer merged commit 679355c into cmdscale:main Feb 4, 2026
2 checks passed
@towner-10 towner-10 deleted the compression-attributes branch February 4, 2026 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants